//
//  USChatVoiceToolBar.m
//  us
//
//  Created by karry on 2025/4/7.
//

#import "USChatVoiceToolBar.h"

@implementation USChatVoiceToolBar

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

- (void)awakeFromNib{
    [super awakeFromNib];
    
    [self addSubview:self.wawBarView];
    
    [self.wawBarView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_offset(8);
        make.left.mas_equalTo(self.mas_left).mas_offset(8 + 36 + 8);
        make.bottom.mas_offset(-8);
        make.right.equalTo(self.timeLab.mas_left).offset(-8).priority(250);
    }];
    
}

- (USWaveBarView *)wawBarView{
    if (!_wawBarView) {
        _wawBarView = [USWaveBarView new];
    }
    return _wawBarView;
}
@end
